$(function () {
  // 滚动出现导航
  $(window).on("scroll", function () {
    let scrollTop = $(document).scrollTop();
    if (scrollTop < 600) {
      $(".fixed-left").css("transform", "scale(0)");
    } else {
      $(".fixed-left").css("transform", "scale(1)");

    }
  });


  // 点击跳转
  $(".fixed-left>a").on("click",function(){
    let className = $(this).attr("data-title");
    let elm =$("." + "floor" + "-" + className);
    let top = elm.offset().top;

    $("html").animate({
      scrollTop:top - 90,
    },800);
  })
});
